package com.mhh.selary.backend.dto.user;

import com.mhh.sdk.beans.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author mhh
 * @date 2020-11-11 16:35:00
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("登录成功")
public class LoginSuccessDTO extends BaseDTO {

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "角色(1:管理员 2:测试人员)")
    private Integer role;

    @ApiModelProperty(value = "token")
    private String token;

    @ApiModelProperty(value = "是否需要修改密码")
    private Boolean needChangePwd;
}
